package com.xyh.product.service.impl;

import com.xyh.pojo.Product;
import com.xyh.product.dao.ProductDao;
import com.xyh.product.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author 丁德成
 * @explain
 * @date 2023/5/12
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;

    @Override
    public Product findById(Integer pid) {
        Product product = productDao.selectById(pid);
        return product;
    }
}
